#include "car.h"


cardata::cardata(int _tyre,const char* _brand,float _price,const char* _color)
{
    tyre=_tyre;
    strcpy(brand,_brand);
    price=_price;
    strcpy(color,_color);
}

void cardata::introduce()
{
    cout<<"品牌:"<<brand<<endl;
    cout<<"车轮数:"<<tyre<<endl;
    cout<<"价格:"<<price<<endl;
    cout<<"颜色:"<<color<<endl;
}
